# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Exp $

EAPI=2
inherit eutils autotools

# INS_DIR="/opt/cern/alice/AppMon_cpp"
PROG_VER=""

DESCRIPTION="ALICE ${PN}"
SRC_URI="http://monalisa.caltech.edu/download/apmon/${P}.tar.gz"

HOMEPAGE="http://monalisa.caltech.edu/monalisa.htm"
  
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"

IUSE=""

CDEPEND=""

DEPEND="${CDEPEND}"

S="${WORKDIR}/${P}"
src_unpack() {
  unpack ${A}
  cd "${S}"
  eautoreconf
}
src_configure() {
  ./configure || die "configure failed"
}

src_compile() {
  emake || die "emake failed"
}


src_install() {
  emake DESTDIR="${D}" install || die "emake install failed"
}

